﻿using HBase.db;
using hCommand;
using System;
using System.Collections.Generic;
using System.Data;

namespace Persistence {
    public class CsdBackEngine : GkTransaction {
        public String from, to;
        public long id;
        protected override TransRes Execute() {
            exec("insert into "+ to + " select * from " + from + " where id=@id", new { id });
            exec("delete from "+ from + " where id=@id", new { id });
            return new TransRes(); 
        }

        
    }
}
